package com.xiaoyu.awakening.ai.index.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xiaoyu.awakening.ai.index.entity.AwkIndexTask;
import com.xiaoyu.awakening.ai.index.entity.req.AwkIndexTaskReq;
import com.xiaoyu.awakening.ai.index.entity.res.AwkIndexTaskStatusDTO;

/**
 * 索引任务管理
 *
 * @author wangxiaoyu
 * @date 2025/7/2 09:53
 * @since v1.0
 */
public interface IAwkIndexTaskService extends IService<AwkIndexTask> {
    AwkIndexTaskStatusDTO commitTask(AwkIndexTaskReq awkIndexTaskReq);

    AwkIndexTaskStatusDTO queryTaskStatus(String taskId);

    AwkIndexTask queryTaskByTaskId(String taskId);

    Boolean updateTaskStatus(AwkIndexTask awkIndexTask);

}
